package com.senven.common.user.feign;

import com.senven.common.entity.Role;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.List;

@FeignClient(value = "senven-orderfood-role")
public interface RoleFeign {
    @RequestMapping(value = "/role/api/findAllRole")
    public List<Role> findAllRole();
    @RequestMapping(value = "/role/api/updateRole")
    public int updateRole(Role role);
}
